﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Reflection;
using System.Text;
using T.ServiceComponent.Error;

namespace T.FAS.Runtime.Expression.Plugin
{
    /// <summary>
    /// 审批流表达式执行插件
    /// </summary>
    public class ParticipantObject : DynamicObject
    {
        private static readonly string s_sysDefaultPlugin = "Sys";
        public ParticipantObject()
        {
        }

        public object DynamicGetMember(string name)
        {
            /* ToDo
            if (string.Equals(name, s_sysDefaultPlugin))
            {
                return new AFExecutor();
            }
            */
            return null;
        }
        public override bool TryGetMember(GetMemberBinder binder, out object result)
        {
            result = DynamicGetMember(binder.Name);
            return true;
        }
    }
}
